package com.ruoyi.base.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.base.mapper.BaseGroupMapper;
import com.ruoyi.base.domain.BaseGroup;
import com.ruoyi.base.service.IBaseGroupService;

/**
 * 组Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-07-22
 */
@Service
public class BaseGroupServiceImpl implements IBaseGroupService 
{
    @Autowired
    private BaseGroupMapper baseGroupMapper;

    /**
     * 查询组
     * 
     * @param ID 组主键
     * @return 组
     */
    @Override
    public BaseGroup selectBaseGroupByID(String ID)
    {
        return baseGroupMapper.selectBaseGroupByID(ID);
    }

    /**
     * 查询组列表
     * 
     * @param baseGroup 组
     * @return 组
     */
    @Override
    public List<BaseGroup> selectBaseGroupList(BaseGroup baseGroup)
    {
        return baseGroupMapper.selectBaseGroupList(baseGroup);
    }

    /**
     * 新增组
     * 
     * @param baseGroup 组
     * @return 结果
     */
    @Override
    public int insertBaseGroup(BaseGroup baseGroup)
    {
        return baseGroupMapper.insertBaseGroup(baseGroup);
    }

    /**
     * 修改组
     * 
     * @param baseGroup 组
     * @return 结果
     */
    @Override
    public int updateBaseGroup(BaseGroup baseGroup)
    {
        return baseGroupMapper.updateBaseGroup(baseGroup);
    }

    /**
     * 批量删除组
     * 
     * @param IDs 需要删除的组主键
     * @return 结果
     */
    @Override
    public int deleteBaseGroupByIDs(String[] IDs)
    {
        return baseGroupMapper.deleteBaseGroupByIDs(IDs);
    }

    /**
     * 删除组信息
     * 
     * @param ID 组主键
     * @return 结果
     */
    @Override
    public int deleteBaseGroupByID(String ID)
    {
        return baseGroupMapper.deleteBaseGroupByID(ID);
    }
}
